Active regulation of longitudinal arch compression and recoil during walking and running